package com.tdy.spring_boot.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description ApplicationTest
 * @Author JiangHu
 * @Date 2022/8/16 15:08
 */
@Component
@PropertySource(value="classpath:config/applicationTest.properties")
public class ApplicationTest {
	@Value("${org.sfac.name}")
	private String name;
	@Value("${org.sfac.age}")
	private int age;
	@Value("${org.sfac.desc}")
	private String desc;
	@Value("${org.sfac.random}")
	private String random;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getRandom() {
		return random;
	}

	public void setRandom(String random) {
		this.random = random;
	}
}
